package com.eleadmin.common.system.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 *
 * @author EleAdmin
 * @since 2024-03-01 22:02:39
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Order对象", description = "")
@TableName("t_order")
public class Order implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "民宿id")
    private Integer homestayId;

    @ApiModelProperty(value = "入住时间")
    private Date liveDate;

    @ApiModelProperty(value = "入住天数")
    private Integer days;

    @ApiModelProperty(value = "价格")
    private BigDecimal prices;

    @ApiModelProperty(value = "订单状态")
    private Integer orderStatus;

    @TableField(exist = false)
    @ApiModelProperty(value = "民宿名称")
    private  String homestayName;

    @TableField(exist = false)
    @ApiModelProperty(value = "民宿状态")
    private  Integer status;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户名")
    private  String username;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户昵称")
    private  String nickname;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户手机号")
    private  String phone;

    @TableField(exist = false)
    @ApiModelProperty(value = "民宿照片")
    private  String image;

    @TableField(exist = false)
    @ApiModelProperty(value = "订单价格")
    private BigDecimal totalPrice;

}
